Skip to content
This repository was archived by the owner on Jun 11, 2019. It is now read-only.

Conversation

@javierbertoli
Copy link
Contributor

Alessandro,

grant.pp had an error when using '*' as a wildcard. It passed the asterisk literal to the grant command, but in SQL the wildcard is '%', so the grant didn't do what expected. Corrected this.

Also added:

  • Extra controls to be able to specify grants for wilcard databases (something like 'datab%').
  • Added extra controls when specifying wilcards, so no database creation is attempted in these cases.
  • Add extra parameter to be able to specify if you want to create or not the database.
  • Added tests.

Please take a look at the changes and let me know if something is wrong

Regards,

Javier

alvagante added a commit that referenced this pull request May 27, 2013
Fixed wildcard database and added some extra options to grant.pp, added tests.
@alvagante alvagante merged commit de65306 into example42:master May 27, 2013
@alvagante
Copy link
Member

Perfect. Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants